.payment-card {
  background: white;
  border-radius: 12px 12px 0px 0px;
  padding: 0px 12px;
  text-align: center;
  overflow: hidden;
  position: relative;
  .pay{
    height: 44px;
    width: 100%;
    background-image: url(@/assets/images/hezuo.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    color: #015b8f;
    font-size: 14px;
    font-weight: 600;
    line-height: 44px;
    text-align: center;
    position: absolute;
    left: 0px;
    margin-bottom: 4px;
  }

  // 向合作商户付款按钮
  .pay-merchant-btn {

    background: #e6f3ff; // 浅蓝色背景
    color: #0e2b55; // 深蓝色文字
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 48px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

    // 添加底部波浪效果
    &::after {
      content: "";
      position: absolute;
      bottom: -2px;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(
        90deg,
        transparent 0%,
        #b3d9ff 50%,
        transparent 100%
      );
      border-radius: 0 0 20px 20px;
    }

    &:hover {
      background: #d1e7ff;
      border-color: #80c7ff;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(14, 43, 85, 0.15);
    }

    &:active {
      transform: translateY(0);
      background: #cce7ff;
    }
  }

  .barcode {
    height: 45px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 8px;

    svg {
      border-radius: 4px;
    }

    &.invalid {
      opacity: 0.25;

      .invalid-mask {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;

        .invalid-text {
          background: #ff4d4f;
          color: white;
          padding: 4px 8px;
          border-radius: 4px;
          font-size: 12px;
          font-weight: bold;
        }
      }
    }
  }

  .barcode-number {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
  }

  .qr-code {
    width: 170px;
    height: 170px;
    margin: 0 auto 0px;
    .qr-placeholder {
      font-size: 14px;
    }

    img {
      border-radius: 4px;
      max-width: 100%;
      max-height: 100%;
    }

    &.invalid {
      opacity: 0.5;
      .invalid-mask {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
      }
    }
  }

  .qr-expiry {
    color: #666;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1em;
    .generating {
      color: #1890ff;
    }
  }

  .refresh-qr {
    color: #cacaca;
    font-size: 14px;
    line-height: 1em;
    cursor: pointer;
    margin-bottom: 12px;
    transition: opacity 0.2s ease;
    img{
      height: 14px;
      width: 14px;
      position: relative;
      top: 2px;
      right: 4px;
    }
    .mock-disabled{
      padding: 8px 0px;
      opacity: .5;
    }
    .mock-scan{
      padding: 8px 0px;
      color: #333;
      opacity: 1;
    }

    &:hover {
      opacity: 0.9;
    }

    &:active {
      opacity: 0.5;
    }
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.5;
  }
}
